#!/usr/bin/python

#Python built-ins
from optparse import OptionParser #This thing is so awesome.
from sys import exit #Just enough to exit when we're through

#Arguments and Options:
parser = OptionParser()
parser.add_option("-s", "--hostname", dest="target_hostname", help="Hostname of target MySQL server", default="localhost", metavar="HOSTNAME")
parser.add_option("-u", "--username", dest="target_username", help="Username to connect to target MySQL server", default="web", metavar="USERNAME")
parser.add_option("-p", "--password", dest="target_password", help="Password to connect to target MySQL server", metavar="PASSWORD")
parser.add_option("-d", "--database", dest="target_database", help="Database to use on target MySQL server", default="titlesearcher2", metavar="DATABASE")
parser.add_option("-b", "--startdate", dest="target_startdate", help="MySQL formatted datetime string to begin auditing at", default="2008-01-01", metavar="DATETIME")
parser.add_option("-e", "--enddate", dest="target_enddate", help="MySQL formatted datetimestring to end auditing at", default="2012-01-01", metavar="DATETIME")
#Future feature#parser.add_option("-y", "--year", dest="target_year", help="Audit exactly one year", default="2008", metavar="YEAR")

(options, args) = parser.parse_args()

def mainloop():
    return 0

if __name__ == '__main__':
    #IF this module is being executed, THEN run the mainloop().
    return_value = mainloop()
    exit(int(return_value)) #Return the integer return value to the calling OS via sys.exit()
